package com.xuecheng.teaching.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.teaching.model.dto.CourseWorkRecordDTO;
import com.xuecheng.api.teaching.model.dto.WorkRecordDTO;
import com.xuecheng.teaching.entity.WorkRecord;

/**
 * <p>
 * 作业提交记录 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-04-20
 */
public interface WorkRecordService extends IService<WorkRecord> {


    /**
     * 根据作业id查询作业详情
     *
     * @param courseWorkId
     * @param companyId
     * @return
     */
    CourseWorkRecordDTO queryCourseWorkRecById(Long courseWorkId, Long companyId);

    /**
     * 批阅作业
     *
     * @param workRecordDTO
     * @return
     */
    WorkRecordDTO correctionCourseWork(WorkRecordDTO workRecordDTO);


    WorkRecordDTO createWorkRecord(WorkRecordDTO dto, String username);

}
